<?php
namespace app\validate;

use think\Validate;

/**
 * Created by PhpStorm.
 * Author: shishiwenjie
 * Date: 2018/5/21
 * Time: 17:23
 */
class Userlogin extends Validate
{
    //写一些简单验证的登录规则
    protected $rule = [
        'mobile|手机号' => [
            'require',
            'mobile',
        ],
        'password|密码' => [
            'require',
            'alphaNum',
            'min' => 6,
            'max' => 12,
        ]
    ];
}